#ifndef NEOSCROLLBARPRIVATE_H
#define NEOSCROLLBARPRIVATE_H

#include "stdafx.h"
#include <QPainter>

class QPropertyAnimation;
class NeoScrollBar;
class NeoScrollBarPrivate : public QObject
{
    Q_OBJECT
    NEO_PRIVATE_CREATE(NeoScrollBar)
    NEO_PRIVATE_PROPERTY_CREATE_H(int, Extent)
    NEO_PRIVATE_PROPERTY_CREATE_H(int, ScrollSpeed)
    NEO_PRIVATE_PROPERTY_CREATE_H(int, WheelSpeed)
public:
    NeoScrollBarPrivate(QObject *parent = nullptr);
    ~NeoScrollBarPrivate();

    void setAnimationValue(int value);

    void updateWidgetGeometry();

private:
    QPropertyAnimation *pPositionAnimation;
};

#endif